﻿using System;
using System.Collections.Generic;

namespace Eneta.Portal.FeedAggregator
{
    internal class Aggregator
    {
        public String Name { get; set; }

        public Guid UniqueId { get; set; }

        public int ID { get; set; }

        private readonly List<Feed> _feeds = new List<Feed>();
        private readonly List<FeedItem> _aggregatedFeedItems = new List<FeedItem>();

        public List<Feed> Feeds
        {
            get { return _feeds; }
        }

        public List<FeedItem> AggregatedFeedItems
        {
            get { return _aggregatedFeedItems; }
        }

        public void AddFeed(Feed feed)
        {
            _feeds.Add(feed);
        }

        public Aggregator(string name)
        {
            Name = name;
        }
    }
}